package xyz.yolin.service;

import xyz.yolin.pojo.AnswerOpt;
import xyz.yolin.pojo.AnswerTxt;
import xyz.yolin.pojo.Survey;

import java.util.List;
import java.util.Map;

public interface SurveyService {
     int create(Survey survey);
     int delete(String str);
     int update(Survey survey);
     List<Survey> query(Survey survey);
     Survey detail(int id);
     int count(Survey survey);
     void updateState();

    List<Survey> queryAll(Survey param);
    Integer submit(List<AnswerOpt> opts, List<AnswerTxt> txts);
    List<AnswerOpt> queryAnswerOpt(AnswerOpt answerOpt);
}
